import request from '@/utils/request'

// 查询存酒信息列表
export function listWine(query) {
  return request({
    url: '/system/wine/list',
    method: 'get',
    params: query
  })
}

// 查询存酒信息详细
export function getWine(id) {
  return request({
    url: '/system/wine/' + id,
    method: 'get'
  })
}

// 新增存酒信息
export function addWine(data) {
  return request({
    url: '/system/wine',
    method: 'post',
    data: data
  })
}

// 修改存酒信息
export function updateWine(data) {
  return request({
    url: '/system/wine',
    method: 'put',
    data: data
  })
}

// 删除存酒信息
export function delWine(id) {
  return request({
    url: '/system/wine/' + id,
    method: 'delete'
  })
}
